﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Web.Http;

using API.Models;
using API.Models.Repository;

namespace API.Controllers.api.v1
{
    public class LOCATIONS_MAPPINGController : BasicController
    {
        public LOCATION_MAP Get(Guid LOCATION_GUID)
        {
            var repository = new LOCATIONS_MAPPING_Repository();
            repository.SetSession(this.currentSession);

            return repository.GetMapping(LOCATION_GUID);
        }

        public void Post(LOCATION_MAP map)
        {
            var repository = new LOCATIONS_MAPPING_Repository();
            repository.SetSession(this.currentSession);

            repository.SetMapping(map);
        }
    }
}
